<h3>测试报告</h3>
<div class="table-responsive">
    <table class="table table-striped table-hover">
        <thead>
        <tr>
            <th>#</th>
            <th>任务名称</th>
            <th>检查链接数</th>
            <th>开始时间</th>
            <th>持续时间(秒)</th>
            <th>报告时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <form class="form-horizontal" action="/admin/page-test/reports" method="post" accept-charset="utf-8">
            <tbody>
            {% for i in range(len(lists)) %}
            <tr>
                <td>{{ (page-1)*limit+i+1 }}</td>
                <td>{{ lists[i].name }}</td>
                <td>{{ lists[i].total_links }}</td>
                <td>{{ lists[i].start_time }}</td>
                <td>{{ lists[i].elapsed_time }}</td>
                <td>{{ lists[i].report_time }}</td>
                <td>
                    <a class="btn btn-primary" href="{{ lists[i].report_url }}" target="_blank">查看报告</a>&nbsp;&nbsp;
                    {% if current_user.role != 2 %}
                    <a class="btn btn-danger btn-delete" data-id="{{ lists[i].sid }}">删除</a></td>
                    {% end %}
                </td>
            </tr>
            {% end %}
            </tbody>
        </form>
    </table>
    {% module nav(total_page, page, limit, '/admin/page-test/reports') %}
</div>